<?php

namespace app\api\validate\v1;

use think\Validate;

class register extends Validate
{
    protected $rule = [
        'captcha' => 'require|alphaNum|length:5,',
    ];

    protected $message = [
        'captcha.require' => '验证码不能为空',
        'captcha.alphaNum' => '验证码必须为数字和字母组合',
        'captcha.length' => '验证码长度必须为5位',
    ];
}